<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'valores-concepto-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Los campos con ('); ?> <span class="required">*</span> <?php echo Yii::t('app', ') son requeridos.'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'ConceptoId'); ?>
		<?php echo $form->dropDownList( $model, 
										'ConceptoId', 
										GxHtml::listDataEx(Concepto::model()->findAllAttributes(null, true, array('order'=>'Descripcion'))),
										array(
											'prompt' => 'Seleccione un Concepto ... '
										)
						); 
		?>
		<?php echo $form->error($model,'ConceptoId'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FechaInicio'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'FechaInicio',
			'value' => $model->FechaInicio,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
		<?php echo $form->error($model,'FechaInicio'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FechaFin'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'FechaFin',
			'value' => $model->FechaFin,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
		<?php echo $form->error($model,'FechaFin'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MotivoFin'); ?>
		<?php echo $form->textField($model, 'MotivoFin', array('maxlength' => 60)); ?>
		<?php echo $form->error($model,'MotivoFin'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'ValorIndividual'); ?>
		<?php echo $form->textField($model, 'ValorIndividual', array('maxlength' => 10)); ?>
		<?php echo $form->error($model,'ValorIndividual'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'ValorGrupal'); ?>
		<?php echo $form->textField($model, 'ValorGrupal', array('maxlength' => 10)); ?>
		<?php echo $form->error($model,'ValorGrupal'); ?>
		</div><!-- row -->


<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->